<template>
	<view @click="goDetail">
		<image :src="imgUrl" mode=""></image>
		<view class="">
			房源名字：{{name}}
		</view>
		<view class="">
			单价：{{price}}
		</view>
		<view class="">
			户型：{{type}}
		</view>
	</view>
</template>

<script setup>
	import {defineProps} from "vue"
	const {imgUrl,name,price,type, id} = defineProps(['imgUrl', 'name', 'price', 'type', 'id'])
	const goDetail = () => {
		uni.navigateTo({
			url: '/pages/detail/detail?id='+id
		})
	}
</script>

<style>

</style>